*******************************************************************************************************************
               		Automatic Run Node & GUI Server User's Guide
					For
	                   Accusys SAS/SATA RAID controller
        	                 ExaRAID HD/ACS 6xxxx
                                  				Editor by Accusys Technology
										    7/2/2010
                       
********************************************************************************************************************                    
		
                       This software license applies only to Accusys customers.
					Accusys Corporation.
					All rights reserved.


Requirement
---------------------------------------------------------------
1.Driver Package
2.RAIDGuard X package (Include GUI Client(GC) & Server(GS))


Operations Platform
----------------------------------------------------------------
CentOS 5.5


Operations Procedure
----------------------------------------------------------------

A.Before Installation

Step 1. Add folder.
        #mkdir Client | make ACSdrv | mkdir Server
Step 2. Extract drvier and GUI files copy to each oneself folder.
        Driver files copy to /ACSdrv
	Client files copy to /GClient
	Server files copy to /GServer
Step 3. Go to ACSdrv folder to make driver ko file.
	#cd /ACSdrv/SourceCode/
	#make

B.Driver Installing (Manually & Automatic)
Step 4-1. Manually load driver and then go to step 6-1.
	  #insmod ./acs_ame.ko
Step 4-2. Automatic load driver.
	  #cp acs_ame.ko /lib/modules/2.6.18-194.el5/kernel/drivers/scsi/
Step 5. Make driver modules to establish relationship.
	#depmod -a

C.Generate Device Node
Step 6-1.Manually load ACS_CDEV0 file.
       	 Verify device ID
	 #cat /proc/devices
         
          Character Drvices:
          253 ACS_CDEV  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< checking line
             
	 Add ACS_CDEV0 file and then go to Step10-1.
 	 #mknod /dev/ACS_CDEV0 c 253 0
         
Step 6-2. Automatic load ACS_CDEV0 file.
	  Use vi editor to add acs_cdev file
	  #vi acs_cdev
	  
	  The acs_cdev file Content:
      --------------------------------------------------------------------------------------------------------
	#!/bin/bash
	#
	#chkconfig: - 55 55
	#description:acs_cdev
	# dd/mm/yyyy edit by xxx
	#Auto service script for acs_cdev
	#
	. /etc/rc.d/init.d/functions
	prog="acs_cdev"
	devicename="ACS_CDEV"
	dev_file="ACS_CDEV0"
	#
	#set -x
	#
	start(){
	local flag=0;
	#set -x
	mknod -m 666 /dev/${dev_file} c `grep $devicename /proc/devices | head -1 | awk '{print $1}'` 0 2>/dev/null
	flag=$?
	#set +x
	return $flag
	}
	stop(){
	return 0
	}
	case "$1" in
	start)
	action $"Starting $prog " start
	RETVAL=$?
	[ "$RETVAL" = 0 ] && touch /var/lock/subsys/$prog
	;;
	stop)
	RETVAL=0
	action $"Stopping $prog " stop
	RETVAL=$?
	[ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/$prog
	;;
	esac
	exit $RETVAL
      -----------------------------------------------------------------------------------------------------------

Step 7. Change acs_cdev file attribute.
	#chmod +x acs_cdev

Step 8. Copy acs_cdev to /etc/init.d/acs_cdev.
	#cp acs_cdev /etc/init.d/acs_cdev

Step 9. Automatic run shell script
        #chkconfig acs_cdev on
        #chkconfig - -list acs_cdev
        
         acs_cdev  0:off  1:off  2:on  3:on  4:on  5:on  6:off   <<<< checking line
 
D.Execute GUI Server
Step 10-1. Manually load GS
           Go to folder "/GServer/AP_Accusys" and run DTRGuiSrv app, and then go to Step12 to run GUI Client.
           #cd /GServer/AP_Accusys
	   #chmod 777 DTRGuiSrv
	   #./DTRGuiSrv
Step 10-2. Automatic load GS application
           Use vi editor to add GS.sh shell script file.
           #vi GS.sh

           The GS.sh file Content:
         -----------------------------------------------------------------------------------------------
         #!/bin/bash
         cd /GServer/AP_Accusys
         chmod 777 DTRGuiSrv
         ./DTRGuiSrv
         -----------------------------------------------------------------------------------------------

Step11. Use vi to edit rc.local file(/etc/rc.d/rc.local)
        #vi /etc/rc.d/rc.local

        The rc.local file Content:
       -----------------------------------------------------------------------------------------------
         sh /GS.sh
       -----------------------------------------------------------------------------------------------

E.Restart computer

F.Execute GUI Client
Step 12. load GC
	 #cd /GClient/Application/
	 #java -jar RAIDGuardX.jar

*************************************************************************************************************************
NOTE:
1.If you can't see the controller on RAIDGuard X. Please execute "ps Vauxto check the "./DTRGuiSrv" whether on processing lists if not please return step1 setup again.
2.If you use step6-1 way and system have more controller please manually load device node.
  For example. 
  #mknod /dev/ACS_CDEVY c XXX 0
   Y: 0~9
   XXX :Use cat to check device ID number.
        ex. #cat /proc/device
  ** Step6-2 Automatic load node way will be not effect.

*************************************************************************************************************************
